1) Application Server configuration for DB Connection Pool Management.
2) Configure container
3) Configure EJB application that uses db connections from pool area.

1) Search for a property called
Weblogic JDBC Connection Pool Management

2) Container config
open weblogic-ejb-jar.xml
</caching-descriptor>
<reference-descriptor>
 <resource-description>
   <res-ref-name>
     jdbc/demoPool
   </res-ref-name>
   <jndi-name>         weblogic.jdbc.jts.demoPool
    </jndi-name>        </resource-description>
</reference-descriptor>
<jndi-name>shop</jndi-name>

open ejb-jar.xml
----------------------
</transaction-type>
 <resource-ref>        <res-ref-name>jdbc/demoPool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

3) EJB
---------
Context ctxt=new InitialContext();

Object o=ctxt.lookup("jdbc/demoPool");

javax.sql.DataSource ds=(javax.sql.DataSource)o;

con=ds.getConnection();

stmt=con.createStatement();
